<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="fy.bean.*,java.util.*,java.io.*" %>
<%
request.setCharacterEncoding("utf-8");
String category = request.getParameter("category");
String categoryname = request.getParameter("categoryname");
String title = request.getParameter("title");
String source = request.getParameter("source");
String content = request.getParameter("data");
String author = request.getParameter("author");
String txtDate = request.getParameter("txtDate");
int homepage = Integer.parseInt(request.getParameter("homepage")); 
 int puton = Integer.parseInt(request.getParameter("puton")); 
 int id = Integer.parseInt(request.getParameter("id"));
System.out.print("updata.jsp : id:"+id+"+category :"+category +"+source :"+source
		+"+author :"+author+"+title :"+title);
System.out.println("content" + content);
SfgkBean sfgkBean = new SfgkBean();

    if(sfgkBean.Updata(category,categoryname,title,source,content,author,txtDate,homepage,puton,id)){
    	response.setCharacterEncoding("utf-8");
   	 PrintWriter pout = response.getWriter();
   	 pout.print("true");
   	 pout.flush();
   	 pout.close();
   	}else{
   	 response.setCharacterEncoding("utf-8");
   	 PrintWriter pout = response.getWriter();
   	 pout.print("false");
   	 pout.flush();
   	 pout.close();
   	 //response.sendRedirect("login.html");
   	};

%>